
<div >
    
    <div class="btn-group alert-light mr-3" role="alert">
        <span>当前第{{paginator.number}}页, 共{{paginator.paginator.num_pages}}页</span>
    </div>
    <div class="btn-group float-right">
        {% if paginator.has_previous %}
        <a class="button mr-3" href="{% url 'index'%}?page={{paginator.previous_page_number}}">上一页</a>
        {% endif %}
        
        {% if paginator.has_next %}
        <a class="button mr-3" href="{% url 'index'%}?page={{paginator.next_page_number}}">下一页</a>
        {% endif %}
    </div>
</div>